package Control;
import Logs.Log;
import Options.Options;
import Search.Search;

/**
 * Description of the class Control.
 * this class is the user opening screen to the file taggging system
 * @author Shinichi
 *
 */
public class Control  {

	public Options option;
	public Search search;
	public Log log;
	/*
	 * this class is the user's opening screen 
	 * with it he can open the different tagging file system windows
	 */
	public Control(Options yourOption,Search yourSearch,Log yourLog){
		option=yourOption;
		search=yourSearch;
		log=yourLog;
	}
	/**
	 * Description of the method openOption.
	 * opens the options window
	 *
	 */
	public void openOption() {
		option.Open();
	}

	/**
	 * Description of the method openLog.
	 * opens the log 
	 *
	 */
	public void openLog() {
		log.Open();
	}

	/**
	 * Description of the method openSearch.
	 * open search window for searching files by their tags
	 *
	 */
	public void openSearch() {
		search.Open();
	}

	/**
	 * Description of the method listenningOn.
	 * with it we can listen to the OS
	 *
	 */
	public void listenningOn() {
		option.on();
	}

	/**
	 * Description of the method listenningOff.
	 * with it we can end the listening to the OS
	 *
	 *
	 */
	public void listenningOff() {
		option.off();
	}

}


